package com.mxsat.system.tree;

import com.mxsat.common.layui.tree.LayTree;
import com.mxsat.system.entity.SysMenu;

public class MenuTree extends LayTree {
	private String id;
	
	private String id_parent;

	private String icon;

	private String path;

	private String auth;
	
	private String url;

	public MenuTree(SysMenu menu) {
		this.setAuth(menu.getAuth());
		this.setHref(menu.getPath());
		this.setIcon(menu.getIcon());
		this.setId(menu.getId()+"");
		this.setId_parent(menu.getId_parent()+"");
		this.setName(menu.getName());
		this.setPath(menu.getPath());
		this.setSpread(false);
		this.setUrl(menu.getUrl());
	}
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getId_parent() {
		return id_parent;
	}

	public void setId_parent(String id_parent) {
		this.id_parent = id_parent;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getAuth() {
		return auth;
	}

	public void setAuth(String auth) {
		this.auth = auth;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
	
	
}
